import React from 'react'
import { useRoutes } from 'react-router-dom'
import routes from './router'
import { ConfigProvider } from 'antd'
const App: React.FC = () => {
  return (
    <div>
      <ConfigProvider
        theme={{
          token: {
            colorPrimary: '#1890ff'
          }
        }}>
        {useRoutes(routes)}
      </ConfigProvider>
    </div>
  )
}

export default App
